<!-- Module JM Slideshow -->
{if $page_name == "index"}
{literal}
<div id="jms-slideshow" class="jms-slideshow">
    {/literal}
    {foreach from=$xml->item item=my_item name=loop}
        {literal}        
            <div class="step" {/literal}{$effect[{0|rand:4}]}{literal}>
                <div class="jms-content">
                    <h3><a href="">{/literal}{$my_item->$title|truncate:127:'...'}{literal}</a></h3>
                    <p>{/literal}{$my_item->$text|truncate:127:'...'}{literal}</p>
                    <a class="jms-link button" href="{/literal}{$my_item->url}{literal}">{/literal}{l s='Learn more' mod='jmpressslideshow'}{literal}</a>
                </div>
                <img src='{/literal}{$module_dir}{$my_item->img}{literal}' alt="" title="{/literal}{$my_item->$title|truncate:127:'...'}{literal}" />
            </div>
        {/literal}
    {/foreach}{literal}
</div>
{/literal}
{/if}
<!-- /Module JM Slideshow -->